home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0399 / 60 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  970 b 

  1. From: Julian F. Reschke <julian@GINA.UNI-MUENSTER.DE>
  2. Subject: utime()
  3. Date: Wed, 27 Jan 93 13:36:27 MET DST
  4.  
  5. Question: how can I set access time and modification time indepently
  6. (assuming that I have a file system that knows about these different time
  7. stamps)?
  8.  
  9. I can't find a system function for that. I've verified the utime()-Binding
  10. in the MiNT library, and -- sure enough -- it uses Fdatime().
  11.  
  12. Proposal: let's define a new opcode for Fcntl that basically implements
  13. the POSIX utime() function. Advantages: no need for changes in the kernel.
  14.  
  15. The library implementation for utime() could then do something like that:
  16.  
  17. - setup the utimbuf struct
  18. - if (MiNT_is_running): try the new Fcntl (check return for EINVFN)
  19. - otherwise use Fdatime().
  20.  
  21. Comments?
  22.  
  23. -- 
  24. ________________ cut here _________________________
  25. Julian F. Reschke, Hensenstr. 142, D-W4400 Muenster
  26.   eMail: julian@math.uni-muenster.de, jr@ms.maus.de
  27. ________ correct me if I'm wrong __________________
  28.